\foreach \x/\y in {0/1,1/2}{
body of foreach
}
